package org.qqcui.designpattern.patterns.bridge;

/**
 * 手机类型的抽象类，分为，直板、滑盖、折叠等
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/4/29 10:05
 **/
public abstract class Phone {
    /**
     * 聚合进手机的品牌商
     */
    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }

    protected void open() {
        this.brand.open();
    }

    protected void close() {
        this.brand.close();
    }

    protected void call() {
        this.brand.call();
    }
}
